<template>
	<view>
		<view class="" style="width: 100%;height: 110rpx;">
		
		</view>
		<view class="bottom-tabbar">
			<view class="tab-one" @click="goBackHome">
				<view class="tab-img"><u-icon name="home"></u-icon></view>
				<view class="tab-name">主页</view>
			</view>
			<view class="tab-one"  @click="telShowBtn">
				<view class="tab-img"><u-icon name="phone"></u-icon></view>
				<view class="tab-name">咨询</view>
			</view>
			<view class="tab-one">
				<view class="tab-img"><u-icon name="zhuanfa"></u-icon></view>
				<view class="tab-name">分享</view>
			</view>
			<view class="tab-three" :style="{backgroundColor:bottomColor}" @click="bottomClick">
				{{bottomContent}}
			</view>
		</view>
			<telPage></telPage>
	</view>
</template>

<script>
	import telPage from '@/components/telPage.vue';
	export default {
		props:{
			bottomContent:String,
			bottomColor:String,
			subjectId:String
		},
		components: {

			telPage
		},
		data() {
			return {
			
			}
		},
		methods: {
			goBackHome(){
				uni.redirectTo({
					url:'/pages/index/index'
				})
			},
			telShowBtn(){
				uni.$emit("telShow",true)
				// console.log("1",telShow);
			},
			bottomClick(){
				console.log("bottomContent",this.bottomContent);
				if(this.bottomContent == '预约试听'){
					uni.navigateTo({
						url:'/pages/index/appointListen?subjectId=' + this.subjectId
					})
				}else if(this.bottomContent == '已报名订单'){
					uni.navigateTo({
						url:'/pages/feature/activityOrders'
					})
				}
			}
		}
	}
</script>

<style>
.bottom-tabbar {
		position: fixed;
		bottom: 0;
		width: 100%;
		height: 100rpx;
		background-color: #ffffff;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 30rpx;
	}
	
	.tab-one {
		width: 90rpx;
		text-align: center;
	}
	
	.tab-name {
		margin-top: 8rpx;
	}
	
	.tab-three {
		width: 400rpx;
		height: 70rpx;
		text-align: center;
		line-height: 70rpx;
		color: #ffffff;
		border-radius: 100rpx;
	
	}
</style>
